import request from '@/utils/request'

// 查询用户人脸识别列表
export function listUserFaceInfo(query) {
  return request({
    url: '/system/userFaceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询用户人脸识别详细
export function getUserFaceInfo(id) {
  return request({
    url: '/system/userFaceInfo/' + id,
    method: 'get'
  })
}

// 新增用户人脸识别
export function addUserFaceInfo(data) {
  return request({
    url: '/system/userFaceInfo',
    method: 'post',
    data: data
  })
}

// 修改用户人脸识别
export function updateUserFaceInfo(data) {
  return request({
    url: '/system/userFaceInfo',
    method: 'put',
    data: data
  })
}

// 删除用户人脸识别
export function delUserFaceInfo(id) {
  return request({
    url: '/system/userFaceInfo/' + id,
    method: 'delete'
  })
}

// 导出用户人脸识别
export function exportUserFaceInfo(query) {
  return request({
    url: '/system/userFaceInfo/export',
    method: 'get',
    params: query
  })
}